#ifndef OS_TYPES_H
#define OS_TYPES_H

#include <stdint.h>
#include <stdio.h>
#include "pmp.h"

#define OS_NULL         (void *)0               // 空指针

typedef enum _os_err_t {
    OS_ERR_OK = 0,
    OS_ERR_PARAM = -1,
    OS_ERR_NONE = -2,
    OS_ERR_REMOVE = -3,
    OS_ERR_LOCKED = -4,
    OS_ERR_UNLOCKED = -5,
    OS_ERR_OWNER = -6,
    OS_ERR_TMO = -7,
    OS_ERR_STATE = -8,
    OS_ERR_FULL = -9,
    OS_ERR_CLEAR = -19,
}os_err_t;

typedef uint16_t os_flags_t;
typedef uint16_t os_cnt_t;
typedef uint32_t os_ticks_t;


#define OS_OBJECT_HEAP                  (1 << 0)        // 采用的动态分配

#endif // OS_TYPES_H
